package part03_工厂模式.demo01_抽象工厂之接入多方云服务器案例.aliyun;

import part03_工厂模式.demo01_抽象工厂之接入多方云服务器案例.aliyun.product.AliyunOssImage;
import part03_工厂模式.demo01_抽象工厂之接入多方云服务器案例.aliyun.product.AliyunOssVideo;
import part03_工厂模式.demo01_抽象工厂之接入多方云服务器案例.factory.AbstractOssFactory;
import part03_工厂模式.demo01_抽象工厂之接入多方云服务器案例.factory.product.OssImage;
import part03_工厂模式.demo01_抽象工厂之接入多方云服务器案例.factory.product.OssVideo;

/**
 * @ClassName: AliyunOssFacotry
 * @Author: AllenSun
 * @Date: 2023/2/12 下午1:41
 */
public class AliyunOssFacotry implements AbstractOssFactory {
    @Override
    public OssImage uploadImage(byte[] bytes) {
        return new AliyunOssImage(bytes,"Allen",true);

    }

    @Override
    public OssVideo uploadVideo(byte[] bytes) {
        return new AliyunOssVideo(bytes,"Allen");
    }
}
